package com.dz51.core.log4j.appender;

import java.io.IOException;

import org.apache.log4j.DailyRollingFileAppender;

import com.dz51.core.utils.PropertiesConfig;

/**
 * @Title: SubDailyRollingFileAppender.java
 * @Package com.dz51.core.log4j.appender
 * @Description: 重些log4j 日志文件目录DailyRollingFile
 * @author Zhaoqt
 * @date 2014-5-10 上午5:44:16
 * @version V1.0
 */
public class SubDailyRollingFileAppender extends DailyRollingFileAppender {

	@Override
	public synchronized void setFile(String fileName, boolean append, boolean bufferedIO, int bufferSize) throws IOException {
		fileName = PropertiesConfig.getProperty("log4j.logFile") + PropertiesConfig.getProperty("log4j.dailyRollingFile");
		super.setFile(fileName, append, bufferedIO, bufferSize);
	}

}
